// 审核不通过原因请求
import qs from 'qs'
import { request } from './request'

// 查看审核不通过原因
export function getReason () {
  return request({
    url: '/admin/auditReason/get'
  })
}

// 增加审核不通过原因
export function addReason (auditing_reason) {
  return request({
    url: '/admin/auditReason/add',
    method: 'post',
    headers:{'Content-Type':'application/x-www-form-urlencoded'},
    data: qs.stringify({
      auditing_reason
    })
  })
}

// 修改审核不通过原因
export function updateReason (auditing_reason_id, auditing_reason) {
  return request({
    url: '/admin/auditReason/update',
    method: 'post',
    headers:{'Content-Type':'application/x-www-form-urlencoded'},
    data: qs.stringify({
      auditing_reason_id,
      auditing_reason
    })
  })
}

// 删除审核不通过原因
export function deleteReason (auditing_reason_id) {
  return request({
    url: '/admin/auditReason/delete/' + auditing_reason_id,
    method: 'post'
  })
}